<?
include($_SERVER[DOCUMENT_ROOT].'/admin/includes/appInit.php');

require_once($_SERVER[DOCUMENT_ROOT].'/admin/includes/ajax/ajaxLogin.php');
require_once($_SERVER[DOCUMENT_ROOT].'/admin/includes/ajax/ajaxResources.php');
require_once($_SERVER[DOCUMENT_ROOT].'/admin/includes/ajax/sysData.php');
$a=0;
foreach($_POST as $key => $value) {
	$valuesArray[$a] = $value;
	$keyArray[$a]    = $key; 
	$a++;
}
$a=0;
foreach($_GET as $key => $value) {
	if($key != '_dc') {
		$valuesArray[$a] = $value;
		$keyArray[$a]    = $key;
		$a++;
	}	
}
// Call function with parameters
if ($keyArray[0] == 'handler') {
	/*
	 * Check for autoComplete input
	 */
	if ( ($keyArray[1] == 'autoComplete') && ($valuesArray[1] == 1) ) {
		$valuesArray[1] = $_REQUEST['autoText'];
	}
	$return = $valuesArray[0]($valuesArray[1],$valuesArray[2],$valuesArray[3],$valuesArray[4],$valuesArray[5],$valuesArray[6],$valuesArray[7],$valuesArray[8]);
	print_r($return);
}
?>